package hn.cch.controller;


import hn.cch.entity.Order;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RequestMapping(value = "nacos")
@RestController
@RefreshScope
public class NacosController {

    private static Logger logger = LoggerFactory.getLogger(NacosController.class);


    @Value("${nacos.param.value}")
    private String paramValue;

    @GetMapping(value = "paramValue")
    public String paramValue() {
        return paramValue;
    }




}
